package com.engine4cloud.tdf.supervision.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 矫正对象犯罪详情-请求对象
 *
 * @author wenjie
 * @date 2024-03-22 10:50:30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "矫正对象犯罪详情-请求对象")
public class JzdxCrimeInfoQueryDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正对象编号
     */
    @Schema(description = "矫正对象编号")
    @NotBlank(message = "矫正对象编号不能为空")
    private String rybh;

    /**
     * 具体罪名
     */
    @Schema(description = "具体罪名")
    private String jtzm;

    /**
     * 犯罪类型
     */
    @Schema(description = "犯罪类型")
    private String fzlx;

    /**
     * 矫正对象编号列表
     */
    @Schema(description = "矫正对象编号列表")
    private List<String> codeList;

    public JzdxCrimeInfoQueryDTO(String code) {
        this.rybh = code;
    }

    public JzdxCrimeInfoQueryDTO(List<String> codeList) {
        this.codeList = codeList;
    }
}